package com.gxa.p2p.pojo;

import lombok.ToString;

import java.io.Serializable;

/**
 * 用户注册表
 */
@ToString
public class  UserRegister implements Serializable {

    private static final long serialVersionUID = 6321017940753424083L;
    private Integer id;

    private String userName;//用户注册名

    private String phoneNumber;//用户注册手机号

    private String password;//用户注册密码

    public UserRegister(Integer id, String userName, String phoneNumber, String password) {
        this.id = id;
        this.userName = userName;
        this.phoneNumber = phoneNumber;
        this.password = password;
    }

    public UserRegister() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }
}